ci: Send Slack notification when scheduled e2e tests fail#1859
Merged
Conversation
Adds a notify_on_failure job to the daily scheduled e2e workflow that posts to #tooling-team-python via SLACK_WEBHOOK_URL when any matrix combination fails. The message links to the workflow run and lists the failed jobs. Manual workflow_dispatch runs are skipped to avoid noise.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1859 +/- ##
==========================================
- Coverage 92.41% 92.32% -0.10%
==========================================
Files 158 158
Lines 11009 11009
==========================================
- Hits 10174 10164 -10
- Misses 835 845 +10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #1725.
Adds a
notify_on_failurejob toon_schedule_tests.yamlthat posts to#tooling-team-pythonwhenever the daily scheduled e2e tests fail. The message includes a link to the workflow run and a bulleted list of the failed matrix combinations. Manualworkflow_dispatchruns are intentionally skipped so ad-hoc triggers don't spam the channel.Implementation notes
slackapi/[email protected]withwebhook-type: incoming-webhook.SLACK_WEBHOOK_URL— needs to be configured before this PR has any effect.gh api .../actions/runs/{run_id}/attempts/{run_attempt}/jobs(uses the existingGITHUB_TOKENwithactions: read).failure() && github.event_name == 'schedule'.Setup checklist
#tooling-team-pythonin Slack.SLACK_WEBHOOK_URLrepository secret.